www.gusucode.com > 深度学习(asp)网址导航 v4.0.1 > 深度学习(asp)网址导航 v4.0.1\code\admin\dataManage\Data_clear.asp

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
projectRootPath = "../../"	'相对当前应用程序根的位置
%>
<!-- #include file ="../include/checkPurview.asp"-->
<!--#include file="../../ConnDB.asp"-->
<!-- #include file="../include/Function.Manage.Config.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="robots" content="noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>数据管理</title>
<link rel="stylesheet" type="text/css" href="../themes/base.css"/>
    <link href="../themes/<%=theme_Path%>/main.css" rel="stylesheet" type="text/css" />
</head>

</head>
<body  id="bodyBg1">
<br />
&nbsp; <a href="data_clear.asp">初始化数据库</a>
<hr class="Nav-hr" />
<br />
<dl class="manageContent">
    <dt>数据删除</dt>
    <dd>
    	<br />
<%
if request.QueryString("action")="delArticleAll" then
	sql_del="delete from deep_Article"
	conn.execute(sql_del)
	response.Write("<p align='center'>所有文章记录已清空</p>")
end if
if request.QueryString("action")="delProductAll" then
	sql_del="delete from tProduct "
	conn.execute(sql_del)
	response.Write("<p align='center'>所有产品记录已清空</p>")
end if
if request.QueryString("action")="delFriendLinkAll" then
	sql_del="delete from deep_FriendLink "
	conn.execute(sql_del)
	response.Write("<p align='center'>所有友情链接记录已清空</p>")
end if


%>
	<div align="center">
    <br />
  <p><a href="?action=delArticleAll" onclick="return confirm('数据清空后将不能恢复,你确定删除么?')">删除所有文章</a></p>
  <p><a href="?action=delProductAll" onclick="return confirm('数据清空后将不能恢复,你确定删除么?')">删除所有产品</a></p>
  <p><a href="?action=delFriendLinkAll" onclick="return confirm('数据清空后将不能恢复,你确定删除么?')">删除所有友情链接</a></p>
  <p>&nbsp;</p>
  <p>注:请慎用此功能,数据一旦删除不可恢复,删除操作请前请备份数据库!!!</p>
</div>
        <br />
    </dd>
</dl>
<br />
</body>
</html>
<%
Call CloseConnDB()
%>